<!DOCTYPE html>
<html lang="en">
<head>
    <script>
        if(!localStorage.forgetTel||localStorage.yzmRight!="true"){
            location = "forget.html";
        }
    </script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,shrink-to-fit=no">
    <title>随手记忘记密码</title>
    <link rel="shortcut icon"
          href="https://static.app.yinxiang.com/embedded-web/registration/favicon.ico"/>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/reg.css">
    <link rel="stylesheet" href="css/login.css">


</head>
<body>
<div class="regdiv">
    <div class="reglogo"></div>
    <h3 class="center">忘记密码</h3>
    <div class="reginput">
        <h3 class="center">重置密码</h3>
        <div class="input" id="phoneinput"><input id="newpwd1" type="password" placeholder="请输入你的新密码"/></div>
        <div class="error error1" id="error1"></div>
        <div class="input pwdinput" id="pwdinput">
            <input id="newpwd2" placeholder="确认新密码" type="password"/>
        </div>
        <div class="error error2" id="error2"></div>
        <div>
            <div class="regbtn btn" id="resetbtn3">重置</div>
        </div>
        <div style="text-align: center;font-size:14px" id="tip"></div>

    </div>
</div>


<script src="https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/js/lib/jquery-1-cc52697ab1.10.2.js"></script>
<script src="js/base.js"></script>
<script>
    resetbtn3.onclick = function(){
        ajax("/bijiuser/resetpwd",{tel:localStorage.forgetTel,pwd:newpwd1.value},
        function(data){
            if(data=="修改成功"){
               location = "forget4.html";
            }else{
                tip.innerHTML = data;
            }
        })
    };
</script>
</body>
</html>
